import requests
'''通过定义请求头伪装成浏览器用户'''
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0"
}
response = requests.get("https://movie.douban.com/top250?start=0",headers=headers)
print("02:"+str(response.status_code))
print(response.text)
